﻿using ProcurementManagement.Domain.ProcurementDomain;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProcurementManagement.Domain.Dtos
{
    /// <summary>
    /// 添加采购申请DTO
    /// </summary>
    public class ProcureApplyCreateDto
    {
        /// <summary>
        /// 采购申请id
        /// </summary>
        public int ProcureApplyId { get; set; }
        /// <summary>
        /// 单据编号
        /// </summary>
        public string? PANumber { get; set; } = Guid.NewGuid().ToString().Replace("-", "").Substring(0, 6);
        /// <summary>
        /// 来源单据类型
        /// </summary>
        public string? PADocumentsType { get; set; }
        /// <summary>
        /// 采购申请类别
        /// </summary>
        public string? PAApplicationType { get; set; }
        /// <summary>
        /// 是否需要询价，通常用 0 表示不需要，1 表示需要
        /// </summary>
        public int? IsPAInquiry { get; set; }
        /// <summary>
        /// 来源单据
        /// </summary>
        public string? PADocuments { get; set; }

        /// <summary>
        /// 单据主题
        /// </summary>
        public string? PAApplyMotif { get; set; }
        /// <summary>
        /// 询价状态
        /// </summary>
        public int? PAEnquiryState { get; set; }
        /// <summary>
        /// 采购状态
        /// </summary>
        public int? PAPurchaseState { get; set; }
        /// <summary>
        /// 制单日期
        /// </summary>
        public DateTime? Dates { get; set; }
        /// <summary>
        /// 添加人姓名
        /// </summary>
        public string? AddName { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? AddTime { get; set; }
        /// <summary>
        /// 公司id
        /// </summary>
        public string? Office_Id { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        public int? User_Id { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Efforts { get; set; }
        /// <summary>
        /// 添加申请明细表
        /// </summary>
        public List<Purchaseproduct> list { get; set; }
    }
}
